package com.bw.car.api

import com.bw.car.entity.AddCarEntity
import com.bw.car.entity.PayNewEntity
import com.bw.car.entity.PaymentEntity
import com.bw.car.entity.StopCarEntityItem
import com.bw.common.api.BaseApiServer
import com.bw.common.entity.BaseRes
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface CarPayApiServer:BaseApiServer {
    //车牌简称
    @GET("/api/vehicles/getProvinces}")
    suspend fun loadCarPayData():BaseRes<List<PaymentEntity>>

    //添加车辆
    @POST("/api/vehicles")
    suspend fun loadAddCar(@Body carEntity: AddCarEntity):BaseRes<AddCarEntity>

    //立即缴费
    @POST("/api/parking-payments")
    suspend fun loadPayment(@Body payNew: PayNewEntity):BaseRes<PayNewEntity>

    //获取所有的停车记录
    @GET("/api/parking-payments")
    suspend fun loadStopCarRecord():BaseRes<List<StopCarEntityItem>>



}